package com.fly.lambda.domain;

import com.sun.istack.internal.NotNull;

import javax.persistence.*;

/**
 * Created by Fly on 2016/7/13.
 */
@Entity
@Table(name = "t_channel_info")
public class Channel {

    @Id
    @Column(name="channel_id", length = 32)
    private String channelId;

    @Column(name="channel_name", length = 50)
    @NotNull
    private String channelName;

    @Column(name = "channel_description", length = 300)
    private String channelDescription;

    @Column(name = "channel_num")
    private int channelNum;

    @ManyToOne
    @JoinColumn(name = "parent_channel_id")
    private Channel parentChannel;

    @Column(name = "channel_level")
    private int channelLevel;

    @Column(name = "channel_path")
    private String channelPath;

    @Column(name = "channel_seo_title", length = 100)
    private String channelSeoTitle;

    @Column(name = "channel_seo_keywords", length = 200)
    private String channelSeoKeywords;

    @Column(name = "channel_seo_description", length = 500)
    private String channelSeoDescription;

    public Channel(){}

    public Channel(String channelId){
        this.channelId = channelId;
    }

    public String getChannelId() {
        return channelId;
    }

    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public String getChannelDescription() {
        return channelDescription;
    }

    public void setChannelDescription(String channelDescription) {
        this.channelDescription = channelDescription;
    }

    public int getChannelNum() {
        return channelNum;
    }

    public void setChannelNum(int channelNum) {
        this.channelNum = channelNum;
    }

    public Channel getParentChannel() {
        return parentChannel;
    }

    public void setParentChannel(Channel parentChannel) {
        this.parentChannel = parentChannel;
    }

    public int getChannelLevel() {
        return channelLevel;
    }

    public void setChannelLevel(int channelLevel) {
        this.channelLevel = channelLevel;
    }

    public String getChannelPath() {
        return channelPath;
    }

    public void setChannelPath(String channelPath) {
        this.channelPath = channelPath;
    }

    public String getChannelSeoTitle() {
        return channelSeoTitle;
    }

    public void setChannelSeoTitle(String channelSeoTitle) {
        this.channelSeoTitle = channelSeoTitle;
    }

    public String getChannelSeoKeywords() {
        return channelSeoKeywords;
    }

    public void setChannelSeoKeywords(String channelSeoKeywords) {
        this.channelSeoKeywords = channelSeoKeywords;
    }

    public String getChannelSeoDescription() {
        return channelSeoDescription;
    }

    public void setChannelSeoDescription(String channelSeoDescription) {
        this.channelSeoDescription = channelSeoDescription;
    }
}
